package cn.aiyuan.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TradeOrder {

    //支付中
    public static final int STATUS_PAYING_APPLY = 0;
    //支付成功
    public static final int STATUS_PAYING_SUCCESS = 1;
    //支付失败
    public static final int STATUS_PAYING_FAIL = 2;

    private Long id;
    private Long create_time = new Date().getTime();
    private String trade_no;
    private BigDecimal amount;
    private String intro;
    private String errorMessage;
    private Integer status;
    private Long user_id;

    public TradeOrder(String trade_no, BigDecimal amount, String intro, Integer status, Long user_id) {
        this.trade_no = trade_no;
        this.amount = amount;
        this.intro = intro;
        this.status = status;
        this.user_id = user_id;
    }


}
